lst = ["3", "5", "1", "6", "7", "34", "9", "2", "6", "8"]

num = int(input("please input an number:"))
for i in lst:
    for j in lst:
        if int(i) + int(j) == num:
            print(lst.index(f"{i}"),lst.index(f"{j}"))
    break